package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.DiscountPolicyDao;
import com.ericom.model.DiscountPolicy;
@Repository("discountPolicyDao")
public class DiscountPolicyDaoHibernate extends GenericDaoHibernate<DiscountPolicy, Long>
		implements DiscountPolicyDao {

	public DiscountPolicyDaoHibernate() {
		super(DiscountPolicy.class);

	}

	@Override
	public List<DiscountPolicy> findByTitle(String title) {
		return this.getHibernateTemplate().find("from DiscountPolicy where title=?",title);
	}

	
}
